package com.asion.qkan.api;

import com.asion.qkan.entry.AllContentBean;
import com.asion.qkan.entry.CategoryEntry;
import com.asion.qkan.entry.HomeBean;
import com.asion.qkan.entry.MaterialBean;
import com.asion.qkan.entry.MusicBean;
import com.asion.qkan.entry.NewBean;
import com.asion.qkan.entry.ReMenBean;
import com.asion.qkan.entry.RecommendEntry;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.Url;

/**
 * Created by asion on 16-10-12.
 */

public interface ServiceApi {
//retrofit 所用Call 都放这里边
//    http://api.kkmh.com/v1/topic_new/discovery_module_list/63?offset=0&limit=20
//    http://api.kkmh.com/v1/topic_new/discovery_module_list/62?offset=0&limit=20
    @GET
    Call<MusicBean> getMusicCommend(@Url String url);

    @GET("v1/topic_new/discovery_module_list/{id}?offset=0&limit=20")
    Call<RecommendEntry> getRecommend(@Path("id") int id);

    @GET("v1/topic_new/lists/get_by_tag?since=20&count=20")
    Call<CategoryEntry> getCatagoryData(@Query("tag") int tag);


    @GET("v1/daily/{category}/{id}?since=0")
    Call<HomeBean> getHomeCommend(@Path("category") String category,@Path("id") String id);

    @GET("v1/topics/{id}")
    Call<AllContentBean> getAllContent(@Path("id") String id);
//    http://api.kkmh.com/v1/feeds/feed_lists?uid=23822625&since=0&page_num=1&catalog_type=1

    @GET("v1/feeds/feed_lists?uid=23822625&since=0&page_num=1")
    Call<ReMenBean> getRemenCommend(@Query("catalog_type") int type);

    @GET("v1/feeds/feed_lists?uid=23822625&since=0&page_num=1&")
    Call<NewBean> getNewCommend(@Query("catalog_type") int type);

    @GET("v1/users/{id}")
    Call<MaterialBean> getMeterial(@Path("id") String id);
}
